package director;

import Builder.Zh0202ComputerBuilder;
import product.Zh0202Computer;

/**
 * @author: zh
 * @date: 2021/11/19 17:23
 * @version: 1.0
 */
public class Zh0202ComputerDirector {
    private Zh0202ComputerBuilder cb;

    public void setCb(Zh0202ComputerBuilder cb) {
        this.cb = cb;
    }

    public Zh0202Computer construct(){
        cb.buildCPU();
        cb.buildGPU();
        cb.buildRAM();
        cb.buildMONITOR();
        cb.buildCD();
        return cb.getComputer();
    }
}
